package net.modul.dict.service;

import net.common.manager.DictManager;
import net.common.service.GeneralService;
import net.modul.dict.dao.DictDao;
import net.modul.dict.dao.impl.DictDaoImpl;
import net.modul.dict.vo.DictVo;

/**
 * 删除数据字典业务处理类
 * 
 * @author Administrator
 *
 */
public class DictDeleteService extends GeneralService {

	private DictVo dictVo;

	@Override
	public void execute() throws Exception {
		DictDao dao = new DictDaoImpl();
		dictVo.setFlag(1);
		dao.updateFlag(dictVo);
		DictManager.removeDict(String.valueOf(dictVo.getDict_sort_id()), dictVo.getDict_num());
	}

	public void setDictVo(DictVo dictVo) {
		this.dictVo = dictVo;
	}

}
